package com.lcl.myapiinterface;

import com.lcl.myapiclintsdk.clint.MyApiClint;
import com.lcl.myapiclintsdk.model.User;


/**  
    * @title: main
    * @projectName myapi-interface
    * @description: TODO
    * @author 555
    * @date 2023/3/1116:56
    */
public class Main {

    public static void main(String[] args) {


        String accessKey = "lcl";
        String secretKey = "abcdefg";


        MyApiClint myApiClint = new MyApiClint(accessKey,secretKey);
        String result1 = myApiClint.getNameByGet("承灵");
        String result2 = myApiClint.getNameByPost("承灵");
        User user = new User();
        user.setUsername("lcl");
        String result3 = myApiClint.getUserNameByPost(user);

        System.out.println(result1);
        System.out.println(result2);
        System.out.println(result3);


    }
    
}
